package com.skplanet.rade.util;

import java.util.List;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class TransJSON {
	public static String InfoToJSON(Object object) {
		Gson newGSON = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().create();
		return newGSON.toJson(object).toString();
	}
	
	public static String InfoToJSON(List<Object> oList) {
		Gson newGSON = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().create();
		return newGSON.toJsonTree(oList).toString();
	}
}
